package com.weizai.carshop.common.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "jwt")
@Component
@Data
public class JwtProperties {
    /**
     * 客户端生成jwt令牌相关配置
     */
    private String userSecretKey; // jwt加密时秘钥

    private String userTokenName; // jwt 名称

    private Long userTtl; // token过期时间

    /**
     * 管理端员工生成jwt令牌相关配置
     */
    private String adminSecretKey;
    private long adminTtl;
    private String adminTokenName;

}

